<div id="lucene-search-form-wrapper" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-icons">
  <span class="ui-button-icon-primary ui-icon ui-icon-search"></span>
  <form action="<?php echo url_for(array('table'=>sfContext::getInstance()->getRequest()->getParameter('table'), 'action'=> 'lucene_search')); ?>" method="get">
    <input type="text"  name="query" value="<?php echo $sf_request->getParameter('query') ?>" id="search_keywords" />
    <input type="submit" value="<?php echo __('search'); ?>" />
  </form>
</div>